Fix compatibility#158
Merged
Merged
Conversation
For compatibility with apache-airflow-providers-snowflake>=6.3.0 apache/airflow#49467
tomasfarias
reviewed
Jul 29, 2025
tomasfarias
reviewed
Jul 29, 2025
Comment on lines
-100
to
-117
| [tool.black] | ||
| line-length = 88 | ||
| target-version = ["py39", "py310", "py311", "py312"] | ||
| include = '\.pyi?$' | ||
| exclude = ''' | ||
| /( | ||
| \.eggs | ||
| | \.git | ||
| | \.hg | ||
| | \.mypy_cache | ||
| | \.tox | ||
| | \.venv | ||
| | _build | ||
| | buck-out | ||
| | build | ||
| | dist | ||
| )/ | ||
| ''' |
tomasfarias
reviewed
Jul 29, 2025
Comment on lines
+31
to
+46
| def try_decode_base64(s: str) -> str: | ||
| """Attempt to decode a string from base64. | ||
|
|
||
| If the string is not valid base64, returns the original value. | ||
|
|
||
| Args: | ||
| s: The string to decode. | ||
|
|
||
| Returns: | ||
| The decoded string, or the original value if decoding fails. | ||
| """ | ||
| try: | ||
| s = base64.b64decode(s, validate=True).decode("utf-8") | ||
| except binascii.Error: | ||
| pass | ||
| return s |
tomasfarias
approved these changes
Jul 29, 2025
tomasfarias
left a comment
Owner
There was a problem hiding this comment.
I've bumped uv.lock both to review it and to get the new airflow-dbt-python in there.
This will be good to merge once CI is green. Thank you for your contribution.
Owner
|
I will cut a release for 3.0.3 later today. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.